package com.example.cafe.work.model;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.stereotype.Component;

/**
 * <p>
 * 
 * </p>
 *
 * @author hua
 * @since 2024-09-16
 */
@Component
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("tb_coffee")
public class Coffee implements Serializable {

    private static final long serialVersionUID=1L;

    @TableId(value = "cof_id", type = IdType.ASSIGN_ID)
    private String cofId;

    /**
     * 咖啡名称
     */
    private String cofName;

    /**
     * 咖啡价格
     */
    private Integer cofPrice;

    /**
     * 咖啡图片
     */
    private String cofImg;

    /**
     * 状态id
     */
    private Integer stateId;

    /**
     * 用于接收创建订单时的数量
     */
    @TableField(exist = false)
    private Integer quantity;


}
